<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <style>
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: 'Arial', sans-serif;
        }

        .page-container {
            width: 100%;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-image: url('https://picsum.photos/1920/1080?blur=5');
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .page-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
        }

        .login-container {
            width: 380px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 1;
        }

        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .login-header h2 {
            color: #333;
            margin: 0;
            font-size: 28px;
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
            box-sizing: border-box;
        }

        .form-group input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
            outline: none;
        }

        #slider-container {
            width: 100%;
            height: 200px;
            position: relative;
            margin: 20px 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .slider-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
        }

        #loginBtn {
            width: 100%;
            padding: 12px;
            background-color: #ccc;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: not-allowed;
            transition: all 0.3s;
            margin-top: 20px;
        }

        #loginBtn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
        }

        #loginBtn.active:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        #verify-info {
            text-align: center;
            margin: 10px 0;
            color: #666;
            font-size: 14px;
        }

        .refresh-btn {
            position: absolute;
            right: -36px;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            background: rgba(255,255,255,0.9);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .refresh-btn:hover {
            background: #fff;
            transform: translateY(-50%) rotate(180deg);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        .refresh-btn i {
            font-size: 14px;
            color: #666;
        }
        .refresh-btn:hover i {
            color: #4CAF50;
        }
        @keyframes spin {
            0% { transform: translateY(-50%) rotate(0deg); }
            100% { transform: translateY(-50%) rotate(360deg); }
        }
        .refresh-btn.refreshing {
            animation: spin 1s linear infinite;
            pointer-events: none;
        }
        .refresh-btn.refreshing i {
            color: #4CAF50;
        }
        .mask-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
        }
        .mask-triangle {
            width: 0;
            height: 0;
            border-left: 30px solid transparent;
            border-right: 30px solid transparent;
            border-bottom: 50px solid rgba(255,87,34,0.3);
            background: none !important;
            box-shadow: none !important;
        }
        .mask-triangle:hover {
            border-bottom-color: rgba(255,87,34,0.4);
        }
        .mask-rectangle {
            width: 60px;
            height: 40px;
            border-radius: 6px;
        }
        .mask-diamond {
            width: 50px;
            height: 50px;
            transform: rotate(45deg);
            border-radius: 4px;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .slider-mask:not(.fake-mask) {
            animation: pulse 2s infinite;
        }
        .captcha-container {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            margin-top: 5px;
            background: linear-gradient(145deg, #ffffff, #f5f5f5);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 5px 5px 10px #e6e6e6, -5px -5px 10px #ffffff;
        }
        
        .captcha-image-container {
            position: relative;
            height: 46px;
            margin-right: 40px;
            background: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), 
                       inset -2px -2px 5px rgba(255,255,255,0.9);
            transition: all 0.3s ease;
        }
        
        .captcha-image-container:hover {
            transform: translateY(-2px);
            box-shadow: inset 2px 2px 5px rgba(0,0,0,0.15), 
                       inset -2px -2px 5px rgba(255,255,255,0.95),
                       0 5px 15px rgba(0,0,0,0.1);
        }
        
        #captchaImage {
            height: 46px;
            width: 140px;
            border-radius: 10px;
            display: block;
            object-fit: cover;
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            padding: 3px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        #captchaImage:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        #captchaImage:active {
            transform: scale(0.98);
            box-shadow: none;
        }
        
        #captcha {
            width: 140px;
            height: 46px;
            padding: 8px 16px;
            font-size: 22px;
            letter-spacing: 8px;
            text-align: center;
            text-transform: uppercase;
            border: none;
            border-radius: 10px;
            background: #ffffff;
            box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), 
                       inset -2px -2px 5px rgba(255,255,255,0.9);
            color: #333;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        #captcha::placeholder {
            letter-spacing: 0;
            font-size: 14px;
            font-weight: normal;
            color: #aaa;
        }
        
        #captcha:focus {
            box-shadow: inset 2px 2px 5px rgba(0,0,0,0.15), 
                       inset -2px -2px 5px rgba(255,255,255,0.95),
                       0 0 0 3px rgba(102, 126, 234, 0.15);
            outline: none;
        }
        
        #captcha.valid {
            background: linear-gradient(145deg, #f0fff0, #e8ffe8);
            box-shadow: inset 2px 2px 5px rgba(76,175,80,0.1), 
                       inset -2px -2px 5px rgba(255,255,255,0.9);
            color: #2e7d32;
        }
        
        #captcha.invalid {
            background: linear-gradient(145deg, #fff0f0, #ffe8e8);
            box-shadow: inset 2px 2px 5px rgba(244,67,54,0.1), 
                       inset -2px -2px 5px rgba(255,255,255,0.9);
            color: #c62828;
        }
        
        .refresh-btn {
            position: absolute;
            right: -38px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            background: linear-gradient(145deg, #ffffff, #f5f5f5);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 3px 3px 6px rgba(0,0,0,0.1), 
                       -3px -3px 6px rgba(255,255,255,0.9);
        }
        
        .refresh-btn:hover {
            background: linear-gradient(145deg, #f5f5f5, #ffffff);
            transform: translateY(-50%) rotate(180deg);
            box-shadow: 4px 4px 8px rgba(0,0,0,0.15), 
                       -4px -4px 8px rgba(255,255,255,0.95);
        }
        
        .refresh-btn i {
            font-size: 16px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: all 0.3s ease;
        }
        
        .refresh-btn:hover i {
            transform: scale(1.1);
        }
        
        .refresh-btn.refreshing {
            animation: spin 1s linear infinite;
            pointer-events: none;
            background: linear-gradient(145deg, #f5f5f5, #ffffff);
        }
        
        .refresh-btn.refreshing i {
            background: linear-gradient(135deg, #764ba2, #667eea);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        @keyframes spin {
            0% { transform: translateY(-50%) rotate(0deg); }
            100% { transform: translateY(-50%) rotate(360deg); }
        }

        .switch-form {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
        }
        
        .switch-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 20px;
            background: #f5f5f5;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
        }
        
        .switch-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }
        
        .switch-btn:hover:not(.active) {
            background: #e0e0e0;
        }
        
        #registerBtn {
            width: 100%;
            padding: 12px;
            background-color: #ccc;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: not-allowed;
            transition: all 0.3s;
            margin-top: 20px;
        }
        
        #registerBtn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
        }
        
        #registerBtn.active:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .form-error {
            color: #ff5252;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }
        
        .input-error {
            border-color: #ff5252 !important;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        
        .shake {
            animation: shake 0.3s ease-in-out;
        }

        .phone-code-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        #reg-phone-code {
            flex: 1;
            width: auto !important;
        }
        
        .send-code-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            min-width: 120px;
        }
        
        .send-code-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .send-code-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }
        
        .send-code-btn.disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        #reg-phone {
            letter-spacing: 1px;
        }
        
        #reg-phone-code {
            letter-spacing: 4px;
            font-size: 18px;
            text-align: center;
        }

        .upload-container {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 15px;
            background: linear-gradient(145deg, #ffffff, #f5f5f5);
            border-radius: 12px;
            box-shadow: 5px 5px 10px #e6e6e6, -5px -5px 10px #ffffff;
        }
        
        .avatar-preview {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), 
                       inset -2px -2px 5px rgba(255,255,255,0.9);
        }
        
        .avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }
        
        .upload-controls {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .upload-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .upload-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .upload-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }
        
        .upload-info {
            font-size: 12px;
            color: #666;
        }
        
        .upload-progress {
            margin-top: 10px;
        }
        
        .progress-bar {
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
            box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
        }
        
        .progress-fill {
            height: 100%;
            width: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s ease;
        }
        
        .progress-text {
            font-size: 12px;
            color: #666;
            text-align: right;
            margin-top: 4px;
        }
        
        .upload-error {
            color: #ff5252;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            z-index: 1001;
        }

        .image-zoom-container {
            position: relative;
            overflow: hidden;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        #modalImage {
            display: block;
            max-width: 100%;
            max-height: 80vh;
            cursor: grab;
            transition: transform 0.2s ease-out;
        }

        #modalImage:active {
            cursor: grabbing;
        }

        .zoom-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 8px;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .zoom-controls button {
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 50%;
            background-color: #fff;
            color: #333;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.2s ease;
        }

        .zoom-controls button:hover {
            background-color: #f0f0f0;
            transform: scale(1.1);
        }

        .close-modal {
            position: absolute;
            top: -40px;
            right: -40px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.2s ease;
        }

        .close-modal:hover {
            background-color: #fff;
            transform: scale(1.1);
        }

        .memory-monitor {
            position: fixed;
            bottom: 20px;
            right: 140px;
            z-index: 1100;
        }

        .monitor-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            position: relative;
        }

        .monitor-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        .monitor-btn.active {
            background: #ff4757;
        }

        .memory-chart-container {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 800px;
            height: 400px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            padding: 15px;
            display: none;
            z-index: 999;
        }

        .memory-chart-container.show {
            display: block;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .chart-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .chart-close {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: #f1f1f1;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .chart-close:hover {
            background: #e0e0e0;
            color: #333;
        }

        .charts-wrapper {
            display: flex;
            gap: 20px;
            height: calc(100% - 40px);
        }

        .chart-section {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .chart-section h3 {
            margin: 0 0 10px 0;
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }

        #memoryTrendChart,
        #processChart {
            flex: 1;
            min-height: 0;
        }

        .weather-monitor {
            position: fixed;
            bottom: 20px;
            right: 80px;
            z-index: 1100;
        }

        .weather-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            position: relative;
        }

        .weather-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        .weather-btn.active {
            background: #ff4757;
        }

        .weather-chart-container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 900px;
            height: 600px;
            background: rgba(255, 255, 255, 0.98);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            padding: 20px;
            display: none;
            z-index: 1001;
        }

        .weather-chart-container.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translate(-50%, -48%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        .chart-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .export-btn,
        .preview-pdf-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: #f8f9fa;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .export-btn:hover,
        .preview-pdf-btn:hover {
            background: #e9ecef;
            color: #333;
            transform: translateY(-1px);
        }

        #weatherChart {
            width: 100%;
            height: calc(100% - 50px);
        }

        .pdf-preview-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1002;
            display: none;
            justify-content: center;
            align-items: center;
        }

        .pdf-preview-container {
            width: 80%;
            height: 90%;
            background: white;
            border-radius: 12px;
            padding: 20px;
            position: relative;
        }

        .loading-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 16px;
            z-index: 1;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        .pdf-close-btn {
            position: absolute;
            top: -20px;
            right: -20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: white;
            color: #333;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .pdf-close-btn:hover {
            transform: scale(1.1);
        }

        .chart-title-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .date-picker-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .weather-date-picker,
        .weather-year-select {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            color: #333;
            background: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .weather-date-picker:hover,
        .weather-year-select:hover {
            border-color: #667eea;
        }

        .weather-date-picker:focus,
        .weather-year-select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
        }

        .weather-year-select {
            min-width: 100px;
        }

        /* 论坛样式 */
        .forum-container {
            max-width: 800px;
            margin: 20px auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }

        .forum-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .forum-title {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }

        .forum-tabs {
            display: flex;
            gap: 10px;
        }

        .tab-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 20px;
            background: #f0f2f5;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn.active {
            background: #667eea;
            color: white;
        }

        .comment-input-area {
            margin-bottom: 20px;
        }

        #commentContent {
            width: 100%;
            height: 100px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            resize: none;
            margin-bottom: 10px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        #commentContent:focus {
            outline: none;
            border-color: #667eea;
        }

        #submitComment {
            padding: 8px 20px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #submitComment:hover {
            background: #5a6fd6;
            transform: translateY(-1px);
        }

        .comments-container {
            margin-top: 20px;
        }

        .comment-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            transition: background-color 0.3s ease;
        }

        .comment-item:hover {
            background-color: #f8f9fa;
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
            color: #666;
        }

        .comment-content {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
            margin-bottom: 10px;
        }

        .comment-footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 15px;
        }

        .like-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 4px 8px;
            border: 1px solid #ddd;
            border-radius: 15px;
            background: white;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .like-btn:hover {
            border-color: #667eea;
            color: #667eea;
        }

        .like-btn.liked {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .prev-page,
        .next-page {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 20px;
            background: white;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .prev-page:hover,
        .next-page:hover {
            border-color: #667eea;
            color: #667eea;
        }

        .prev-page:disabled,
        .next-page:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-info {
            font-size: 14px;
            color: #666;
        }

        .hot-comments-ranking {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .hot-comments-ranking h3 {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
        }

        .ranking-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

        .ranking-number {
            font-size: 16px;
            font-weight: bold;
            color: #667eea;
            min-width: 24px;
        }

        .ranking-content {
            flex: 1;
        }

        .ranking-likes {
            color: #666;
            font-size: 12px;
        }

        /* 添加论坛按钮 */
        .forum-monitor {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1100;
        }

        .forum-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            position: relative;
        }

        .forum-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        .forum-btn.active {
            background: #ff4757;
        }

        /* 修改论坛容器为弹出式 */
        .forum-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1200;
        }

        .forum-container {
            position: relative;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
            overflow: auto;
            z-index: 1300;
        }

        .forum-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .forum-title {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }

        .forum-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .forum-tabs {
            display: flex;
            gap: 10px;
        }

        .forum-close-btn {
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 50%;
            background: white;
            color: #333;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .forum-close-btn:hover {
            transform: scale(1.1);
        }
    </style>
</head>
<body>
    <div class="page-container">
        <div class="login-container">
            <div class="login-header">
                <h2>用户登录</h2>
                <div class="switch-form">
                    <button type="button" class="switch-btn active" data-form="login">登录</button>
                    <button type="button" class="switch-btn" data-form="register">注册</button>
                </div>
            </div>
            <form id="loginForm" class="form-active" onsubmit="return false;">
                <div class="form-group">
                    <label for="username">账号</label>
                    <input type="text" id="username" required placeholder="请输入账号">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" required placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="captcha">验证码</label>
                    <div class="captcha-container">
                        <input type="text" id="captcha" required placeholder="请输入验证码" maxlength="4">
                        <div class="captcha-image-container">
                            <img id="captchaImage" alt="验证码">
                            <button type="button" class="refresh-btn" title="刷新验证码">
                                <i class="fas fa-sync-alt"></i>
                            </button>
                        </div>
                    </div>
                </div>
                <div id="verify-info">拖动滑块完成拼图</div>
                <button type="submit" id="loginBtn" disabled>登录</button>
            </form>
            <form id="registerForm" style="display: none;" onsubmit="return false;">
                <div class="form-group">
                    <label for="reg-username">账号</label>
                    <input type="text" id="reg-username" required placeholder="请输入账号">
                </div>
                <div class="form-group">
                    <label for="reg-password">密码</label>
                    <input type="password" id="reg-password" required placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="reg-confirm-password">确认密码</label>
                    <input type="password" id="reg-confirm-password" required placeholder="请再次输入密码">
                </div>
                <div class="form-group">
                    <label for="reg-email">邮箱</label>
                    <input type="email" id="reg-email" required placeholder="请输入邮箱">
                </div>
                <div class="form-group">
                    <label for="reg-avatar">头像上传</label>
                    <div class="upload-container">
                        <div class="avatar-preview">
                            <img id="avatarPreview" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' fill='%23f0f0f0'/%3E%3Cpath d='M60 40c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zm0-8c-15.5 0-28 12.5-28 28s12.5 28 28 28 28-12.5 28-28-12.5-28-28-28z' fill='%23ccc'/%3E%3C/svg%3E" alt="头像预览">
                        </div>
                        <div class="upload-controls">
                            <input type="file" id="reg-avatar" accept="image/*" style="display: none;">
                            <button type="button" class="upload-btn" onclick="document.getElementById('reg-avatar').click()">
                                <i class="fas fa-cloud-upload-alt"></i> 选择图片
                            </button>
                            <div class="upload-info">支持 jpg、png 格式，最大 10MB</div>
                        </div>
                    </div>
                    <div class="upload-progress" style="display: none;">
                        <div class="progress-bar">
                            <div class="progress-fill"></div>
                        </div>
                        <div class="progress-text">0%</div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="reg-phone">手机号码</label>
                    <input type="tel" id="reg-phone" required placeholder="请输入手机号码" pattern="[0-9]{11}">
                </div>
                <div class="form-group">
                    <label for="reg-phone-code">手机验证码</label>
                    <div class="phone-code-container">
                        <input type="text" id="reg-phone-code" required placeholder="请输入验证码" maxlength="6">
                        <button type="button" id="sendCodeBtn" class="send-code-btn">获取验证码</button>
                    </div>
                </div>
                <div class="form-group">
                    <label for="reg-captcha">验证码</label>
                    <div class="captcha-container">
                        <input type="text" id="reg-captcha" required placeholder="请输入验证码" maxlength="4">
                        <div class="captcha-image-container">
                            <img id="regCaptchaImage" alt="验证码">
                            <button type="button" class="refresh-btn" title="刷新验证码">
                                <i class="fas fa-sync-alt"></i>
                            </button>
                        </div>
                    </div>
                </div>
                <button type="submit" id="registerBtn" disabled>注册</button>
            </form>
        </div>
    </div>

    <!-- 修改图片预览模态框 -->
    <div class="preview-modal">
        <div class="modal-overlay"></div>
        <div class="modal-content">
            <div class="image-zoom-container">
                <img id="modalImage" src="" alt="预览图片">
                <div class="zoom-controls">
                    <button class="zoom-in" title="放大">+</button>
                    <button class="zoom-out" title="缩小">-</button>
                    <button class="reset-zoom" title="重置">↺</button>
                </div>
            </div>
            <button class="close-modal" title="关闭">×</button>
        </div>
    </div>

    <!-- 修改内存监控容器 -->
    <div class="memory-chart-container">
        <div class="chart-header">
            <span class="chart-title">内存使用情况</span>
            <button class="chart-close" title="关闭">×</button>
        </div>
        <div class="charts-wrapper">
            <div class="chart-section">
                <h3>内存使用趋势</h3>
                <div id="memoryTrendChart"></div>
            </div>
            <div class="chart-section">
                <h3>进程内存占用</h3>
                <div id="processChart"></div>
            </div>
        </div>
    </div>

    <!-- 添加内存监控按钮和图表容器 -->
    <div class="memory-monitor">
        <button class="monitor-btn" title="内存监控">
            <i class="fas fa-microchip"></i>
        </button>
    </div>

    <!-- 添加天气监控按钮和图表容器 -->
    <div class="weather-monitor">
        <button class="weather-btn" title="天气预览">
            <i class="fas fa-cloud-sun"></i>
        </button>
    </div>
    <div class="weather-chart-container">
        <div class="chart-header">
            <div class="chart-title-section">
                <span class="chart-title">珠海天气数据</span>
                <div class="date-picker-container">
                    <input type="month" id="weatherMonth" class="weather-date-picker">
                    <select id="weatherYear" class="weather-year-select">
                        <option value="2025">2025年</option>
                        <option value="2024">2024年</option>
                        <option value="2023">2023年</option>
                        <option value="2022">2022年</option>
                        <option value="2021">2021年</option>
                        <option value="2020">2020年</option>
                    </select>
                </div>
            </div>
            <div class="chart-actions">
                <button class="export-btn" title="导出图表">
                    <i class="fas fa-download"></i>
                </button>
                <button class="preview-pdf-btn" title="预览PDF">
                    <i class="fas fa-file-pdf"></i>
                </button>
                <button class="chart-close" title="关闭">×</button>
            </div>
        </div>
        <div class="charts-wrapper">
            <div id="weatherChart"></div>
        </div>
    </div>

    <!-- 添加PDF预览容器 -->
    <div class="pdf-preview-overlay">
        <div class="pdf-preview-container">
            <button class="pdf-close-btn">×</button>
            <iframe id="pdfViewer" width="100%" height="100%" frameborder="0"></iframe>
        </div>
    </div>

    <!-- 添加论坛按钮 -->
    <div class="forum-monitor">
        <button class="forum-btn" title="匿名论坛">
            <i class="fas fa-comments"></i>
        </button>
    </div>

    <!-- 修改论坛容器为弹出式 -->
    <div class="forum-overlay">
        <div class="forum-container">
            <div class="forum-header">
                <span class="forum-title">匿名论坛</span>
                <div class="forum-actions">
                    <div class="forum-tabs">
                        <button class="tab-btn active" data-tab="latest">最新评论</button>
                        <button class="tab-btn" data-tab="hot">热门评论</button>
                    </div>
                    <button class="forum-close-btn" title="关闭">×</button>
                </div>
            </div>
            
            <!-- 评论输入区域 -->
            <div class="comment-input-area">
                <textarea id="commentContent" placeholder="说点什么吧..."></textarea>
                <button id="submitComment">发表评论</button>
            </div>

            <!-- 评论列表区域 -->
            <div class="comments-container">
                <div id="commentsList"></div>
                <div class="pagination">
                    <button class="prev-page">上一页</button>
                    <span class="page-info">第 <span class="current-page">1</span> 页</span>
                    <button class="next-page">下一页</button>
                </div>
            </div>

            <!-- 热门评论排行榜 -->
            <div class="hot-comments-ranking" style="display: none;">
                <h3>热门评论排行榜</h3>
                <div id="rankingList"></div>
            </div>
        </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.31/jspdf.plugin.autotable.min.js"></script>
    <script src="./js/auth.js"></script>
    <script src="./js/register.js"></script>
    <script src="./js/avatar.js"></script>
    <script src="./js/memory-monitor.js"></script>
    <script src="./js/weather-chart.js"></script>
    <script src="./js/forum.js"></script>
</body>
</html> 